package com.twu.biblioteca;

import java.util.List;
import java.util.Scanner;
import java.lang.System.*;
import  java.io.*;

public class Customer{

    String userName;
    String password;
    String name;
    String email;
    String phone;



    public Customer(String userName, String password, String name, String email, String phone){
        this.userName = userName;
        this.password = password;
        this.email  = email;
        this.phone = phone;
        this.name = name;

    }

    public Customer(String name, String password){
        this.userName = name;
        this.password = password;

    }

    public Customer(){}

    public Customer(boolean forLogin){
        requestUsername();
        requestPassword();

    }

    private void requestPassword() {
        System.out.println("Password:");
        Scanner sc = new Scanner(System.in);
        password=sc.next();

    }

    private void requestUsername() {
        System.out.println("Username:");
        Scanner sc = new Scanner(System.in);
        userName=sc.next();


    }


    public String getUsername() {
        return userName;
    }

    public String getPassword(){

        return password;
    }
}
